﻿Imports DAL

Public Class buRockwellAutomationPriceLists

    Public Function RetrievePriceListVersions() As List(Of RockwellAutomationPriceList)

        Using dbEntities As New PrestozEntities

            Dim oPriceList As List(Of RockwellAutomationPriceList) = _
                                    (From p In dbEntities.RockwellAutomationPriceLists
                                     Select New RockwellAutomationPriceList With {
                                         .Version = p.Version}).Distinct().ToList()

            Return oPriceList
        End Using

    End Function

End Class
